/**
 * Created by админ on 30.06.14.
 */
public class BinTree {
    public int x;
    public char c;
    public BinTree l,r;
    BinTree(int х, char c) {
        this.x = x;
        this.c = c;
        this.l=null;
        this.r=null;
    }
    public void createBinTree(int t,char ch,BinTree root)
    {if(root==null)
    {BinTree temp=new BinTree(t,ch);
    root=temp;return;}
    if(t<root.x){root=root.l;createBinTree(t,ch,root);}
        else{root=root.r;createBinTree(t,ch,root);}
    }

}
